﻿using System.Windows.Forms;
using CSW.Framework.UI.Binding;

namespace CSW.Framework.UI.Forms
{
    /// <summary>
    /// Base Edit Record Form.
    /// </summary>
    public partial class BaseEditForm : Form
    {
        /// <summary>
        /// The <see cref="ErrorWrapper"/> wrapping <see cref="errorProvider"/>.
        /// </summary>
        protected readonly ErrorWrapper error;

        /// <summary>
        /// Initializes a new instance of the <see cref="BaseEditForm"/> class.
        /// </summary>
        public BaseEditForm()
        {
            InitializeComponent();

            error = new ErrorWrapper(errorProvider);
        }
    }
}
